package com.wms.dao;

import com.wms.domain.Menu;
import com.wms.domain.TableHead;
import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface TableHeadMapper{
    public int addTable(TableHead tableHead);

    public int delTable(String table_key);
    public int getTablePageCount(TableHead tableHead);
    public List<TableHead> getTablePage(TableHead tableHead);
    @Select("SELECT * FROM table_head WHERE table_key = #{table_key} ORDER BY head_sort")
    public List<HashMap<String, Object>> getTableHead(String table_key);
}
